package com.polaris.live.ui.party.activity.base

import android.os.Bundle
import androidx.viewbinding.ViewBinding
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.ui.live.activity.base.BaseLiveActivity
import com.polaris.live.ui.party.PartyUserStateUtil
import com.polaris.live.utils.zego.media.MediaProxy

/**
 * BasePartyAnchorActivity  语聊房房主base类
 * @author Created by 天晴 on 2024/2/24 11:19
 * @since 1.0.0
 **/
abstract class BasePartyAnchorActivity<VM : BaseViewModel, VB : ViewBinding> :
    BaseLiveActivity<VM, VB>() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        PartyUserStateUtil.master = true
        MediaProxy.observeMediaPlayer(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        PartyUserStateUtil.master = false
    }
}